package com.aaa.product.service.impl;

import com.aaa.entity.Product;
import com.aaa.product.dao.ProductDao;
import com.aaa.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author ：ludi（206913808@qq.com）
 * @date ：Created in 2022/11/17 16:42
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductDao productDao;

    /**
     * @create by: ludi（206913808@qq.com）
     * @description: 根据商品id查询商品
     * @create time: 2022/11/17 17:20
     * @param pid
     * @return com.aaa.entity.Product
     */
    @Override
    public Product selectById(Long pid) {
        return productDao.selectById(pid);
    }
}